import config from "../../config/index.js";

export default {
    getAsideMenuList: {
        url: `${config.API_PREFIX}/blog/getAsideMenuList`,
        name: "获取顶部侧边菜单",
        get: () => {
            const asideMenu = [
                {
                    name: "YuQue", path: "yuQue", component: "", meta: {title: "语雀", type: "DIRECTORY"},
                    children: [
                        {name: "CxyXh", path: "cxyXh", component: "https://www.yuque.com/liuzhihangs/note", meta: {icon: "", title: "程序员小航", type: "LINK"}},
                        {name: "Hao", path: "hao", component: "https://www.yuque.com/liuzhihangs/halo-theme-hao", meta: {icon: "", title: "Hao", type: "LINK"}},
                        {name: "DocView", path: "docView", component: "https://www.yuque.com/liuzhihangs/doc-view", meta: {icon: "", title: "DocView", type: "LINK"}}
                    ]
                },
                {
                    name: "BoKe", path: "boKe", component: "", meta: {title: "博客", type: "DIRECTORY"},
                    children: [
                        {name: "CSDN", path: "csdn", component: "https://blog.csdn.net/qq_36535538?spm=1011.2415.3001.5343", meta: {icon: "", title: "CSDN", type: "LINK"}},
                        {name: "GitHub", path: "gitHub", component: "https://github.com/liuzhihang", meta: {icon: "", title: "GitHub", type: "LINK"}}
                    ]
                }
            ];
            return new Promise((resolve) => resolve(asideMenu));
        }
    },
    getNavigationMenuList: {
        url: `${config.API_PREFIX}/blog/getNavigationMenuList`,
        name: "获取顶部导航菜单",
        get: () => {
            const navigationMenu = [
                {
                    name: "Index", path: "index", component: "index", meta: {icon: "", title: "首页", type: "MENU"}
                },
                {
                    name: "Article", path: "article", component: "article", meta: {icon: "", title: "文章", type: "MENU"},
                    children: [
                        {name: "File", path: "file", component: "file", meta: {icon: "hao-icon-box-archive", title: "归档", type: "MENU"}},
                        {name: "Categories", path: "categories", component: "categories", meta: {icon: "hao-icon-list-ul", title: "分类", type: "MENU"}},
                        {name: "Tags", path: "tags", component: "tags", meta: {icon: "hao-icon-tag", title: "标签", type: "MENU"}}
                    ]
                },
                {
                    name: "Life", path: "life", component: "life", meta: {icon: "", title: "生活", type: "MENU"},
                    children: [
                        {name: "Moments", path: "moments", component: "moments", meta: {icon: "hao-icon-logo-moment", title: "瞬间", type: "MENU"}},
                        {name: "Friends", path: "friends", component: "friends", meta: {icon: "hao-icon-tongxunlu07", title: "友链", type: "MENU"}},
                        {name: "Fcircle", path: "fcircle", component: "fcircle", meta: {icon: "hao-icon-shoe-prints", title: "鱼塘", type: "MENU"}}
                    ]
                },
                {
                    name: "About", path: "about", component: "about", meta: {icon: "", title: "关于", type: "MENU"}
                },
            ];
            return new Promise((resolve) => resolve(navigationMenu));
        }
    },
    getIconMenuList: {
        url: `${config.API_PREFIX}/blog/getIconMenuList`,
        name: "获取底部图标菜单",
        get: () => {
            const iconMenu = [
                {name: "Email", path: "email", component: "http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=Vjo-Iyw_Pz43ODElFicneDU5Ow", meta: {icon: "hao-icon-qq", title: "QQ邮箱", type: "LINK"}},
                {name: "XHang", path: "xHang", component: "https://mp.weixin.qq.com/s/NGtUpnGIPw4MCc90Ew-BRw", meta: {icon: "hao-icon-weixingongzhonghao", title: "程序员小航", type: "LINK"}},
                {name: "GitHub_2", path: "gitHub_2", component: "https://github.com/liuzhihang", meta: {icon: "hao-icon-weixingongzhonghao", title: "GitHub", type: "LINK"}},
                {name: "LeetCode", path: "leetCode", component: "https://leetcode-cn.com/u/liuzhihang/", meta: {icon: "hao-icon-leetcode", title: "LeetCode", type: "LINK"}},
                {name: "CSDN_2", path: "csdn_2", component: "https://blog.csdn.net/qq_36535538", meta: {icon: "hao-icon-csdn", title: "CSDN", type: "LINK"}},
                {name: "ZH", path: "zh", component: "https://www.zhihu.com/people/liuzhihang", meta: {icon: "hao-icon-29", title: "知乎", type: "LINK"}},
            ];
            return new Promise((resolve) => resolve(iconMenu));
        }
    },
    getNormalMenuList: {
        url: `${config.API_PREFIX}/blog/getNormalMenuList`,
        name: "获取底部普通菜单",
        get: () => {
            const normalMenu = [
                {
                    name: "BK", path: "bk", component: "", meta: {title: "博客", type: "DIRECTORY"},
                    children: [
                        {name: "blogCsdn", path: "blogCsdn", component: "https://blog.csdn.net/qq_36535538", meta: {title: "CSDN",type: "LINK"}},
                        {name: "YQ_1", path: "yq_1", component: "https://www.yuque.com/dashboard", meta: {title: "语雀", type: "LINK"}},
                    ],
                },
                {
                    name: "ZL", path: "zl", component: "",
                    meta: {title: "专栏", type: "DIRECTORY"},
                    children: [
                        {name: "YMBJ", path: "ymbj", component: "note", meta: {title: "源码笔记", type: "MENU"}},
                        {name: "Curator", path: "curator", component: "curator", meta: {title: "Curator", type: "MENU"}},
                        {name: "WorkNote", path: "workNote", component: "workNote", meta: {title: "工作笔记", type: "MENU"}}
                    ],
                },
                {
                    name: "ZT", path: "zt", component: "", meta: {title: "主题", type: "DIRECTORY"},
                    children: [
                        {name: "Awesome", path: "awesome", component: "https://github.com/halo-sigs/awesome-halo", meta: {title: "Awesome", type: "LINK"}},
                        {name: "Halo", path: "halo", component: "https://github.com/halo-dev/halo", meta: {title: "Halo", type: "LINK"}},
                        {name: "HaoIcon", path: "haoIcon", component: "https://npm.onmicrosoft.cn/hao-theme-static@1.3.4/icon/demo_index.html", meta: {title: "Hao-Icon", type: "LINK"}},
                    ]
                },
                {
                    name: "LY", path: "ly", component: "", meta: {title: "留言", type: "DIRECTORY"},
                    children: [
                        {name: "LYB", path: "lyb", component: "message", meta: {title: "留言板", type: "MENU"}},
                        {name: "YY", path: "yy", component: "music", meta: {title: "音乐", type: "MENU"}},
                        {name: "YQ_2", path: "yq_2", component: "https://www.yuque.com/liuzhihangs/thread/hrhmwghug39r1lwm", meta: {title: "语雀", type: "LINK"}},
                        {name: "Issue", path: "issue", component: "https://github.com/liuzhihang/halo-theme-hao/issues", meta: {title: "Issue", type: "LINK"}},
                    ]
                },
            ];
            return new Promise((resolve) => resolve(normalMenu));
        }
    },
    getFriendMenuList: {
        url: `${config.API_PREFIX}/blog/getFriendMenuList`,
        name: "获取底部友链菜单",
        get: () => {
            const friendMenu = [
                {name: "One", path: "one", component: "https://blog.csdn.net/qq_36535538", meta: {title: "One", type: "LINK"}},
                {name: "Two", path: "two", component: "https://blog.csdn.net/qq_36535538", meta: {title: "Two", type: "LINK"}},
            ];
            return new Promise((resolve) => resolve(friendMenu));
        }
    },
}